import { createRouter, createWebHashHistory } from "vue-router";
import { App } from "vue";

export const router = createRouter({
  history: createWebHashHistory("/"),
  routes: [
    {
      path: "/",
      name: "Home",
      component: () => import("@/views/home/Home.vue"),
    },
  ],
  scrollBehavior: () => ({ left: 0, top: 0 }),
});

export function setupRouter(app: App) {
  app.use(router);
}
